package org.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * Hello world!
 *
 */

//主配置类单独处理 负载均衡配置类 ，有多个Provider都需要配置，同名配置一个即可
@LoadBalancerClients(value = {
        @LoadBalancerClient(name = "myserviceProvider",configuration = MyLoadBalancerConfig.class)
})
@SpringBootApplication
@EnableFeignClients

public class HelloConsumerFeignApplication
{
    public static void main( String[] args )
    {
        SpringApplication.run(HelloConsumerFeignApplication.class);
    }
}
